package com.lf.sp.service;

import com.github.pagehelper.PageInfo;
import com.lf.sp.common.ServerResponse;
import com.lf.sp.pojo.Product;
import com.lf.sp.vo.ProductDetailVo;

public interface IProductService {

	ServerResponse saveOrUpdateProduct(Product product);

	ServerResponse setSaleStatus(Integer productId, Integer status);

	ServerResponse<ProductDetailVo> getDetail(Integer productId);

	ServerResponse<PageInfo> getProductList(int pageNum, int pageSize);

	ServerResponse<PageInfo> productSearch(String productName, Integer productId, int pageNum, int pageSize);

	ServerResponse getProductDetail(Integer productId);

	ServerResponse getProductByKeywordCategory(String keyword, Integer categoryId, int pageNum, int pageSize,
			String orderBy);

}
